

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from "pinia-plugin-persistedstate"
import App from './App.vue'
import router from './router'
// 引入初始化样式
import "@/styles/common.scss"
// 导入懒加载指令并注册
import { lazyPlugin} from "./directive"
// 引入全局组件插件
import {componentPlugin} from "@/components/index.js"
const pinia=createPinia()
// 持久化插件
pinia.use(piniaPluginPersistedstate)
const app = createApp(App)
// 图片懒加载指令
app.use(lazyPlugin)
app.use(componentPlugin)
app.use(pinia)
app.use(router)
app.mount('#app')
